package com.krautzlabs;

import java.util.ArrayList;

//abstract class for CapturePoint and BasePoint
public class MapPoint {
	
	private int x;
	private int y;
	private int id;//used temporarily for xml parsing
	private ArrayList<MapPoint> neighbors = new ArrayList<MapPoint>();
	
	private Player owner;
	
	public MapPoint(int x, int y, int id)
	{
		this.x = x;
		this.y = y;
		this.id = id;
	}
	
	public void addNeighbor(MapPoint mapPoint)
	{
		neighbors.add(mapPoint);
	}
	
	public ArrayList<MapPoint> getNeighbors()
	{
		return this.neighbors;
	}

	public int getX()
	{
		return this.x;
	}
	
	public int getY()
	{
		return this.y;
	}
	
	public int getId()
	{
		return this.id;
	}
	
	
}
